package cn.bugDance.types.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.yaml.snakeyaml.constructor.DuplicateKeyException;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum ResponseCode {

    SUCCESS("0000", "成功"),
    UN_ERROR("0001", "未知失败"),
    ILLEGAL_PARAMETER("0002", "非法参数"),
    RULE_TREE_ERROR("0003", "策略规则树配置问题"),
    DUPLICATE_KEY_EXCEPTION("0004", "主键冲突"),
    ACTIVITY_STATE_ERROR("0005", "活动已经下线或者未启动"),
    ACTIVITY_TIME_ERROR("0006", "未在活动时间内"),
    ACTIVITY_SKU_STOCK_ERROR("0007", "sku库存不足"),
    ACTIVITY_ACCOUNT_TOTAL_COUNT_ERROR("0008", "活动账户总账额为空"),
    ACTIVITY_ACCOUNT_MONTH_COUNT_ERROR("0009", "活动月账户总账额为空"),
    ACTIVITY_ACCOUNT_DAY_COUNT_ERROR("0010", "活动日账户总账额为空"),
    ACTIVITY_PARTAKE_ORDER_STATE_ERROR("0011", "参与订单状态异常"),
    EXIST_DAY_CHECK_IN("0012", "用户当天已经签到"),
    NO_EXIST_ACTIVITY_ACCOUNT("0013", "用户为参加该活动"),
    NO_EXIST_AWARD_SERVICE("0014", "抽奖的奖品没有对应的服务"),
    NO_EXIST_CREDIT_ACCOUNT("0015", "不存在积分账户"),
    AVAILABLE_AMOUNT_NO_ENOUGH("0016", "积分账户不足"),
    NO_LOGIN("0017", "未扫码"),
    DEGRADE_SWITCH("0018", "活动已经降级"),
    RATE_LIMIT("0019", "活动已经被限流"),
    HYSTRIX("0020", "熔断限流");

    private String code;
    private String info;

}
